﻿using System;

namespace TemplateFoundation.CustomProperties
{
    /// <summary>
    /// Attribute for custom properties based on user controls for the user interface
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
    public class UserControlPropertyAttribute : Attribute
    {
        /// <summary>
        /// Virtual path to the associated user control used for rendering the property in edit mode
        /// </summary>
        public string EditUserControlPath { get; set; }

        /// <summary>
        /// Virtual path to the associated user control used for on-page editing
        /// </summary>
        public string OnPageEditUserControlPath { get; set; }

        /// <summary>
        /// Virtual path to the associated user control used for rendering the property on page templates
        /// </summary>
        public string DefaultUserControlPath { get; set; }
    }
}
